function numMat=struct2mat(structure) 
% function numMat=struct2mat(structure) 
%
% Given the structure STRUCTURE, convert its contents into a numeric matrix 
% numMat 
% See structMult2mat to extract the contents of multiple structures into a
% matrix ensuring that the fields match 
if isstruct(structure)==false; 
    error('This function only works with structures'); 
end 
numMat=cell2mat(struct2cell(structure)); 
